package demo1.subClass;

import demo1.Duck;
import demo1.FlyBehavior;
import demo1.QuackBehavior;
import demo1.impl.NoFlyWay;
import demo1.impl.Quack;

/**
 * @author 24岁没牵过女人的手
 * 日期：2023/6/28 10:03
 * 文件描述：
 */
public class ModelDuck extends Duck {
    public ModelDuck() {
        super(new Quack(), new NoFlyWay());
    }

    @Override
    public void disPlay() {
        System.out.println("it is a model");
    }


}
